package com.jessechanrui.template.common.template.auth.exception;


import com.jessechanrui.template.core.exception.BaseErrorCode;

/**
 * @author chenrui
 * @version 1.0
 * @description ErrorCode
 * @date 2025/5/7
 */
public enum ErrorCode implements BaseErrorCode {
    DATABASE_ERROR("AICR_CONSOLE_10001", "数据库异常"),
    GERRIT_ERROR("AICR_CONSOLE_10002", "Gerrit调用异常"),
    TASK_PLATFORM_ERROR("AICR_CONSOLE_10003", "任务平台调用异常"),
    USER_ERROR("AICR_CONSOLE_10004", "用户异常"),
    KNOWLEDGE_PLATFORM_ERROR("AICR_CONSOLE_10005", "知识库调用异常"),
    PROJECT_ERROR("AICR_CONSOLE_10006", "项目异常"),
    REPORT_RECORD_ERROR("AICR_CONSOLE_10007", "审查记录异常"),
    REQUIREMENT_ANALYSIS_AGENT_ERROR("AICR_CONSOLE_10008", "需求分析智能体异常"),
    CODER_REVIEW_AGENT_ERROR("AICR_CONSOLE_10009", "代码审查智能体异常"),
    ARCHITECTURE_GUARDIAN_ERROR("AICR_CONSOLE_100010", "代码审查智能体异常"),
    REQUIREMENT_ANALYSIS_ERROR("AICR_CONSOLE_100011", "需求分析记录异常"),
    CODEREVIEW_RULE_ERROR("AICR_CONSOLE_100012", "需求审查规则配置异常"),
    ARCHGUARD_RULE_ERROR("AICR_CONSOLE_100013", "架构守护规则配置异常"),
    RULE_TEMPLATE_ERROR("AICR_CONSOLE_100014", "规则模板配置异常"),
    ARCHITECTURE_LAYER_ERROR("AICR_CONSOLE_100015", "架构分层配置异常"),
    AUTH_CENTER_ERROR("AICR_CONSOLE_10016", "认证中心调用异常"),
    MASTER_CONTROL_ERROR("AICR_CONSOLE_10017", "主控服务调用异常");
    private final String code;
    private final String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
